/*********************************************************************
 * Copyright (C) 2008 by Duncan A. Buell.  All rights reserved.
 * Interface for the <code>Phonebook</code> class.
 *
 * @author Duncan A. Buell
 * @version 1.00 2008-12-16
**/
public interface IPhonebook
{
/*********************************************************************
 * Method to add a <code>Phonebook</code> entry.
 * @param record the <code>Record</code> to add.
 * @return true if the list changes, else false.
**/
  public boolean add(Record record);

/*********************************************************************
 * Method to find if a list has a given record. 
 * @param record the <code>Record</code> to match against. 
 * @return the <code>boolean</code> answer to the question.
**/
  public boolean contains(Record record);

/*********************************************************************
 * Method to remove a node with a given record value. 
 * @param record the <code>Record</code> whose node is to be removed.
 * @return the <code>boolean</code> that remove succeeded.
**/
  public boolean remove(Record record);

/*********************************************************************
 * Method to <code>toString</code> a complete Phonebook.
 * @return the <code>toString</code> rep'n of the entire DLL.
**/
  public String toString();

} // public interface IPhonebook
